//package com.example.rotateimageview.sortlist
//
//import android.view.View
//import android.view.ViewGroup
//import androidx.recyclerview.widget.RecyclerView
//import androidx.recyclerview.widget.SortedList
//import androidx.recyclerview.widget.SortedListAdapterCallback
//import com.example.rotateimageview.MainActivity
//
///**
// * 增删频繁列表使用
// */
//class SortListAdapter :RecyclerView.Adapter<SortListAdapter.ItemViewHolder>() {
//    private val sortList = SortedList(MainActivity.Item::class.java,object : SortedListAdapterCallback<MainActivity.Item>(this){
//        override fun compare(o1: MainActivity.Item?, o2: MainActivity.Item?): Int {
//            TODO("Not yet implemented")
//        }
//
//        override fun onInserted(position: Int, count: Int) {
//            TODO("Not yet implemented")
//        }
//
//        override fun onRemoved(position: Int, count: Int) {
//            TODO("Not yet implemented")
//        }
//
//        override fun onMoved(fromPosition: Int, toPosition: Int) {
//            TODO("Not yet implemented")
//        }
//
//        override fun onChanged(position: Int, count: Int) {
//            TODO("Not yet implemented")
//        }
//
//        override fun areContentsTheSame(oldItem: MainActivity.Item?, newItem: MainActivity.Item?): Boolean {
//            TODO("Not yet implemented")
//        }
//
//        override fun areItemsTheSame(item1: MainActivity.Item?, item2: MainActivity.Item?): Boolean {
//            TODO("Not yet implemented")
//        }
//    })
//    class ItemViewHolder(view: View) :RecyclerView.ViewHolder(view){
//
//    }
//
//    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder {
//        TODO("Not yet implemented")
//    }
//
//    override fun onBindViewHolder(holder: ItemViewHolder, position: Int) {
//        TODO("Not yet implemented")
//    }
//
//    override fun getItemCount(): Int {
//        TODO("Not yet implemented")
//    }
//}